/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.knet.sp.ncrm.modules.office.notify.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import cn.knet.sp.ncrm.common.persistence.DataEntity;

/**
 * 系统通知、预约提醒Entity
 * @author gehaiyang
 * @version 2015-07-20
 */
public class OfficeNotify extends DataEntity<OfficeNotify> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// 类型:系统通知、预约提醒
	private String title;		// 标题
	private String content;		// 内容
	private String files;		// 附件
	private Date remindTime;		// 预约提醒时间
	private String status;		// 状态
	private String[] officeIds; //发布范围
	
	public OfficeNotify() {
		super();
	}

	public OfficeNotify(String id){
		super(id);
	}

	@Length(min=0, max=10, message="类型:系统通知、预约提醒长度必须介于 0 和 10 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=200, message="标题长度必须介于 0 和 200 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=10, max=20000, message="内容长度必须介于10 和 10000 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=2000, message="附件长度必须介于 0 和 2000 之间")
	public String getFiles() {
		return files;
	}

	public void setFiles(String files) {
		this.files = files;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRemindTime() {
		return remindTime;
	}

	public void setRemindTime(Date remindTime) {
		this.remindTime = remindTime;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}


	public String[] getOfficeIds() {
		return officeIds;
	}

	public void setOfficeIds(String[] officeIds) {
		this.officeIds = officeIds;
	}
}